<!DOCTYPE HTML>
<html lang="zh-tw" >
    <!-- Start book python高级 -->
    <head>
        <!-- head:start -->
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>图形化客户端Navicat | python高级</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-splitter/splitter.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-emphasize/plugin.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../day14/04.命令行客户端.html" />
    
    
    <link rel="prev" href="../day14/02.数据类型和约束.html" />
    

        <!-- head:end -->
    </head>
    <body>
        <!-- body:start -->
        
    <div class="book"
        data-level="4.3"
        data-chapter-title="图形化客户端Navicat"
        data-filepath="day14/03.Navicat.md"
        data-basepath=".."
        data-revision="Wed Sep 26 2018 22:46:13 GMT+0800 (CST)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Python高级
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="day11/00.readme.html">
            
                
                    <a href="../day11/00.readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        Python语法高级专题1
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="day11/01.GIL.html">
            
                
                    <a href="../day11/01.GIL.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        GIL问题
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="day11/02.copy.html">
            
                
                    <a href="../day11/02.copy.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        赋值-浅拷贝-深拷贝
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="day11/03.import.html">
            
                
                    <a href="../day11/03.import.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        import导入模块
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="day11/04.review.html">
            
                
                    <a href="../day11/04.review.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="day12/00.readme.html">
            
                
                    <a href="../day12/00.readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        Python语法高级专题2
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="day12/01.mro.html">
            
                
                    <a href="../day12/01.mro.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        多继承和MRO顺序
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="day12/02.property.html">
            
                
                    <a href="../day12/02.property.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        property属性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="day12/03.magic.html">
            
                
                    <a href="../day12/03.magic.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        魔法属性和方法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="day12/04.with.html">
            
                
                    <a href="../day12/04.with.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        with管理上下文
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="day12/05.review.html">
            
                
                    <a href="../day12/05.review.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="day13/00.readme.html">
            
                
                    <a href="../day13/00.readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        Python语法之装饰器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="day13/01.closure.html">
            
                
                    <a href="../day13/01.closure.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        闭包
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="day13/02.decorator.html">
            
                
                    <a href="../day13/02.decorator.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        装饰器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="day13/03.review.html">
            
                
                    <a href="../day13/03.review.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="day14/00.readme.html">
            
                
                    <a href="../day14/00.readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        MySQL数据库基本操作
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="day14/01.数据库概述.html">
            
                
                    <a href="../day14/01.数据库概述.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        数据库概述
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="day14/02.数据类型和约束.html">
            
                
                    <a href="../day14/02.数据类型和约束.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        数据完整性
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="4.3" data-path="day14/03.Navicat.html">
            
                
                    <a href="../day14/03.Navicat.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.</b>
                        
                        图形化客户端Navicat
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="day14/04.命令行客户端.html">
            
                
                    <a href="../day14/04.命令行客户端.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.4.</b>
                        
                        命令行客户端SQL的使用
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.4.1" data-path="day14/05.sql_con.html">
            
                
                    <a href="../day14/05.sql_con.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.4.1.</b>
                        
                        登录和退出数据库
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.4.2" data-path="day14/07.sql_table_struct.html">
            
                
                    <a href="../day14/07.sql_table_struct.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.4.2.</b>
                        
                        表结构的操作
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.4.3" data-path="day14/06.sql_database.html">
            
                
                    <a href="../day14/06.sql_database.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.4.3.</b>
                        
                        数据库的操作
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.4.4" data-path="day14/08.表数据操作.html">
            
                
                    <a href="../day14/08.表数据操作.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.4.4.</b>
                        
                        表数据的操作
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="day14/09.review.html">
            
                
                    <a href="../day14/09.review.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.5.</b>
                        
                        知识总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="5" data-path="day15/00.readme.html">
            
                
                    <a href="../day15/00.readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        MYSQL数据库进阶操作
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.1" data-path="day15/01.练习.html">
            
                
                    <a href="../day15/01.练习.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.1.</b>
                        
                        练习强化
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="day15/02.where条件.html">
            
                
                    <a href="../day15/02.where条件.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.2.</b>
                        
                        条件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="day15/03.排序查询.html">
            
                
                    <a href="../day15/03.排序查询.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.3.</b>
                        
                        排序
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="day15/04.分页查询.html">
            
                
                    <a href="../day15/04.分页查询.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.4.</b>
                        
                        分页
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="day15/05.聚合函数.html">
            
                
                    <a href="../day15/05.聚合函数.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.5.</b>
                        
                        聚合函数
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="day15/06.分组.html">
            
                
                    <a href="../day15/06.分组.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.6.</b>
                        
                        分组
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.7" data-path="day15/07.连接.html">
            
                
                    <a href="../day15/07.连接.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.7.</b>
                        
                        连接
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.8" data-path="day15/08.自连接.html">
            
                
                    <a href="../day15/08.自连接.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.8.</b>
                        
                        自连接
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.9" data-path="day15/09.子查询.html">
            
                
                    <a href="../day15/09.子查询.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.9.</b>
                        
                        子查询
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.10" data-path="day15/10.总结.html">
            
                
                    <a href="../day15/10.总结.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.10.</b>
                        
                        总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6" data-path="day16/readme.html">
            
                
                    <a href="../day16/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        MYSQL数据库编程
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1" data-path="day16/data.html">
            
                
                    <a href="../day16/data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.1.</b>
                        
                        数据准备
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="day16/sql_code.html">
            
                
                    <a href="../day16/sql_code.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.2.</b>
                        
                        SQL演练
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="day16/dbdesign.html">
            
                
                    <a href="../day16/dbdesign.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.3.</b>
                        
                        数据库设计
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="day16/pymysql.html">
            
                
                    <a href="../day16/pymysql.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.4.</b>
                        
                        数据库编程
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.5" data-path="day16/zongjie.html">
            
                
                    <a href="../day16/zongjie.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.5.</b>
                        
                        总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7" data-path="day17/00.readme.html">
            
                
                    <a href="../day17/00.readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        MySQL数据库高级用法
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1" data-path="day17/01.view.html">
            
                
                    <a href="../day17/01.view.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.1.</b>
                        
                        视图
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="day17/02.transaction.html">
            
                
                    <a href="../day17/02.transaction.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.2.</b>
                        
                        事务
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="day17/03.sql_index.html">
            
                
                    <a href="../day17/03.sql_index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.3.</b>
                        
                        索引
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="day17/04.user.html">
            
                
                    <a href="../day17/04.user.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.4.</b>
                        
                        用户管理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="day17/05.master_slave.html">
            
                
                    <a href="../day17/05.master_slave.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.5.</b>
                        
                        主从配置
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="day17/06.review.html">
            
                
                    <a href="../day17/06.review.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.6.</b>
                        
                        总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="8" data-path="day18/00.readme.html">
            
                
                    <a href="../day18/00.readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.</b>
                        
                        miniweb框架
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="8.1" data-path="day18/01.框架是什么.html">
            
                
                    <a href="../day18/01.框架是什么.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.1.</b>
                        
                        框架概念
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.2" data-path="day18/02.实现框架.html">
            
                
                    <a href="../day18/02.实现框架.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.2.</b>
                        
                        实现一个简单的框架
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.3" data-path="day18/03.模板.html">
            
                
                    <a href="../day18/03.模板.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.3.</b>
                        
                        模板替换
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.4" data-path="day18/04.路由.html">
            
                
                    <a href="../day18/04.路由.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.4.</b>
                        
                        路由概念
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.5" data-path="day18/05.显示股票数据.html">
            
                
                    <a href="../day18/05.显示股票数据.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.5.</b>
                        
                        股票收藏夹
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.6" data-path="day18/05.review.html">
            
                
                    <a href="../day18/05.review.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.6.</b>
                        
                        复习
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    本書使用 GitBook 釋出
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >python高级</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="3-navicat">3. Navicat</h1>
<p><strong>&#x5B66;&#x4E60;&#x76EE;&#x6807;</strong></p>
<ol>
<li>&#x80FD;&#x591F;&#x4F7F;&#x7528; Navicat &#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;.</li>
<li>&#x80FD;&#x591F;&#x4F7F;&#x7528; Navicat &#x5728;&#x6570;&#x636E;&#x5E93;&#x4E2D;&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;&#x8868;.</li>
<li>&#x80FD;&#x591F;&#x4F7F;&#x7528; Navicat &#x5728;&#x6570;&#x636E;&#x5E93;&#x4E2D;&#x6DFB;&#x52A0;&#x6570;&#x636E;.</li>
</ol>
<hr>
<p>MySQL &#x6570;&#x636E;&#x5E93;&#x672C;&#x8EAB;&#x81EA;&#x5E26;&#x6709;&#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;, &#x4E5F;&#x6709;&#x56FE;&#x5F62;&#x7BA1;&#x7406;&#x5DE5;&#x5177; MySQL Workbench. &#x4F46;&#x81EA;&#x5E26;&#x7684;&#x5DE5;&#x5177;&#x5728;&#x529F;&#x80FD;&#x4E0A;&#x548C;&#x6613;&#x7528;&#x6027;&#x4E0A;&#x603B;&#x6BD4;&#x4E0D;&#x4E0A;&#x7B2C;&#x4E09;&#x65B9;&#x5F00;&#x53D1;&#x7684;&#x5DE5;&#x5177;, &#x6BD4;&#x5982; Navicat, &#x4F7F;&#x7528;&#x5B83;&#x4F60;&#x51E0;&#x4E4E;&#x80FD;&#x5B8C;&#x6210;&#x4EFB;&#x4F55;&#x9488;&#x5BF9; MySQL &#x7684;&#x7BA1;&#x7406;&#x4EFB;&#x52A1;. </p>
<p>Navicat &#x662F;&#x4E00;&#x5957;&#x5FEB;&#x901F;&#x3001;&#x53EF;&#x9760;&#x5E76;&#x4EF7;&#x683C;&#x9002;&#x5B9C;&#x7684;&#x6570;&#x636E;&#x5E93;&#x7BA1;&#x7406;&#x5DE5;&#x5177;, &#x9002;&#x7528;&#x4E8E;&#x4E09;&#x79CD;&#x5E73;&#x53F0;, Microsoft Windows&#x3001;Mac OS X &#x53CA; Linux. &#x53EF;&#x4EE5;&#x7528;&#x6765;&#x5BF9;<strong>&#x672C;&#x673A;</strong>&#x6216;<strong>&#x8FDC;&#x7A0B;</strong>&#x7684; MySQL&#x3001;SQL Server&#x3001;SQLite&#x3001;Oracle &#x53CA; PostgreSQL &#x6570;&#x636E;&#x5E93;&#x8FDB;&#x884C;&#x7BA1;&#x7406;&#x53CA;&#x5F00;&#x53D1;. &#x4E13;&#x4E3A;&#x7B80;&#x5316;&#x6570;&#x636E;&#x5E93;&#x7684;&#x7BA1;&#x7406;&#x53CA;&#x964D;&#x4F4E;&#x7CFB;&#x7EDF;&#x7BA1;&#x7406;&#x6210;&#x672C;&#x800C;&#x8BBE;. &#x5B83;&#x7684;&#x8BBE;&#x8BA1;&#x7B26;&#x5408;&#x6570;&#x636E;&#x5E93;&#x7BA1;&#x7406;&#x5458;&#x3001;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x53CA;&#x4E2D;&#x5C0F;&#x4F01;&#x4E1A;&#x7684;&#x9700;. Navicat &#x662F;&#x4EE5;&#x76F4;&#x89C9;&#x5316;&#x7684;<strong>&#x56FE;&#x5F62;&#x7528;&#x6237;&#x754C;&#x9762;</strong>&#x800C;&#x5EFA;&#x7684;, &#x8BA9;&#x4F60;&#x53EF;&#x4EE5;&#x4EE5;&#x5B89;&#x5168;&#x5E76;&#x4E14;&#x7B80;&#x5355;&#x7684;&#x65B9;&#x5F0F;&#x5BF9;<strong>&#x6570;&#x636E;&#x5E93;&#x8FDB;&#x884C;&#x64CD;&#x4F5C;</strong>.</p>
<center><img src="imgs/navicat.jpeg" width="70%" height="70%"></center>
<center><b>Navicat &#x56FE;&#x5F62;&#x5316;&#x5BA2;&#x6237;&#x7AEF;</b></center>

<p>&#x4E0B;&#x9762;&#x6211;&#x4EEC;&#x4F7F;&#x7528; Navicat &#x4ECE;&#x4E09;&#x65B9;&#x9762;&#x6765;&#x4ECB;&#x7ECD;&#x8BE5;&#x6570;&#x636E;&#x5E93;&#x5BA2;&#x6237;&#x7AEF;&#x5DE5;&#x5177;&#x7684;&#x4F7F;&#x7528;:</p>
<ol>
<li>&#x6570;&#x636E;&#x5E93;&#x64CD;&#x4F5C;.</li>
<li>&#x6570;&#x636E;&#x8868;&#x7684;&#x64CD;&#x4F5C;.</li>
<li>&#x6570;&#x636E;&#x5E93;&#x8868;&#x4E2D;&#x6570;&#x636E;&#x7684;&#x64CD;&#x4F5C;.</li>
</ol>
<h2 id="32-&#x6570;&#x636E;&#x5E93;&#x64CD;&#x4F5C;">3.2 &#x6570;&#x636E;&#x5E93;&#x64CD;&#x4F5C;</h2>
<p>&#x5BF9;&#x6570;&#x636E;&#x5E93;&#x7684;&#x64CD;&#x4F5C;, &#x6211;&#x4EEC;&#x9700;&#x8981;&#x638C;&#x63E1;&#x4EE5;&#x4E0B;&#x64CD;&#x4F5C;:</p>
<ol>
<li>&#x5982;&#x4F55;&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;.</li>
<li>&#x5982;&#x4F55;&#x7F16;&#x8F91;&#x6570;&#x636E;&#x5E93;.</li>
<li>&#x5982;&#x4F55;&#x5220;&#x9664;&#x6570;&#x636E;&#x5E93;.</li>
</ol>
<h3 id="321-&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;">3.2.1 &#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;</h3>
<ol>
<li>&#x5728;&#x5DE6;&#x4FA7;&#x680F;&#x7A7A;&#x767D;&#x5904;&#x53F3;&#x51FB;&#xFF0C;&#x9009;&#x62E9;&#x201C;&#x65B0;&#x5EFA;&#x6570;&#x636E;&#x5E93;&#x201D;&#xFF0C;&#x70B9;&#x51FB;</li>
</ol>
<center><img src="../assets/day14/5-1-1.png" width="70%" height="70%"></center>
<center><b>&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93; &#x7B2C;1&#x6B65;</b></center>

<p><br></p>
<ol>
<li>&#x70B9;&#x51FB;&#x540E;&#x5F39;&#x51FA;&#x65B0;&#x7A97;&#x53E3;&#xFF0C;&#x586B;&#x5199;&#x6570;&#x636E;&#x5E93;&#x540D;&#x79F0;&#x5E76;&#x9009;&#x62E9;&#x8BED;&#x8A00;&#x5982;&#x4E0B;&#x56FE;</li>
</ol>
<center><img src="../assets/day14/5-1-2.png" width="70%" height="70%"></center>
<center><b>&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93; &#x7B2C;2&#x6B65;</b></center>

<p><br></p>
<ol>
<li>&#x586B;&#x5199;&#x5B8C;&#x6210;&#x540E;&#x70B9;&#x51FB;&#x201C;&#x786E;&#x5B9A;&#x201D;&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;&#xFF0C;&#x5728;&#x5DE6;&#x4FA7;&#x4F1A;&#x51FA;&#x73B0;&#x521A;&#x624D;&#x521B;&#x5EFA;&#x7684;&#x6570;&#x636E;&#x5E93;&#xFF0C;&#x53CC;&#x51FB;&#x6253;&#x5F00;</li>
</ol>
<center><img src="../assets/day14/5-1-3.png" width="70%" height="70%"></center>
<center><b>&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93; &#x7B2C;3&#x6B65;</b></center>

<h3 id="322-&#x7F16;&#x8F91;&#x6570;&#x636E;&#x5E93;">3.2.2 &#x7F16;&#x8F91;&#x6570;&#x636E;&#x5E93;</h3>
<ol>
<li>&#x5728;&#x5DE6;&#x4FA7;&#x680F;&#x6570;&#x636E;&#x5E93;&#x4E0A;&#x53F3;&#x51FB;&#xFF0C;&#x5F39;&#x51FA;&#x83DC;&#x5355;&#xFF0C;&#x5982;&#x4E0B;&#x56FE;</li>
</ol>
<center><img src="../assets/day14/5-1-4.png" width="70%" height="70%"></center>
<center><b>&#x7F16;&#x8F91;&#x6570;&#x636E;&#x5E93; &#x7B2C;1&#x6B65;</b></center>

<p><br></p>
<ol>
<li>&#x9009;&#x62E9;&#x201C;&#x7F16;&#x8F91;&#x6570;&#x636E;&#x5E93;&#x201D;&#xFF0C;&#x53EF;&#x4EE5;&#x4FEE;&#x6539;&#x5B57;&#x7B26;&#x96C6;&#x3001;&#x6392;&#x5E8F;&#x89C4;&#x5219;&#xFF0C;&#x5982;&#x4E0B;&#x56FE;</li>
</ol>
<center><img src="../assets/day14/5-1-5.png" width="70%" height="70%"></center>
<center><b>&#x7F16;&#x8F91;&#x6570;&#x636E;&#x5E93; &#x7B2C;2&#x6B65;</b></center>

<p><br></p>
<ol>
<li>&#x9009;&#x62E9;&#x201C;&#x8F6C;&#x50A8; SQL &#x6587;&#x4EF6;, &#x53EF;&#x4EE5;&#x5B8C;&#x6210;&#x7ED3;&#x6784;&#x548C;&#x6570;&#x636E;&#x7684;&#x5907;&#x4EFD;&#xFF0C;&#x5982;&#x4E0B;&#x56FE;&#xFF1A;</li>
</ol>
<center><img src="../assets/day14/5-1-6.png" width="70%" height="70%"></center>
<center><b>&#x7F16;&#x8F91;&#x6570;&#x636E;&#x5E93; &#x7B2C;3&#x6B65;</b></center>

<ol>
<li>&#x9009;&#x62E9; &quot;&#x5220;&#x9664;&#x6570;&#x636E;&#x5E93;&quot;, &#x53EF;&#x4EE5;&#x5C06;&#x6570;&#x636E;&#x5E93;&#x5220;&#x9664;</li>
</ol>
<h2 id="33-&#x6570;&#x636E;&#x8868;&#x7684;&#x64CD;&#x4F5C;">3.3 &#x6570;&#x636E;&#x8868;&#x7684;&#x64CD;&#x4F5C;</h2>
<ol>
<li>&#x521B;&#x5EFA;&#x6570;&#x636E;&#x8868;.</li>
<li>&#x7F16;&#x8F91;&#x6570;&#x636E;&#x8868;. </li>
</ol>
<h3 id="331-&#x521B;&#x5EFA;&#x6570;&#x636E;&#x8868;">3.3.1 &#x521B;&#x5EFA;&#x6570;&#x636E;&#x8868;</h3>
<ol>
<li>&#x70B9;&#x51FB;&#x5DE5;&#x5177;&#x680F;&#x201C;&#x8868;&#x201D;&#xFF0C;&#x5728;&#x7B2C;&#x4E8C;&#x884C;&#x663E;&#x793A;&#x5173;&#x4E8E;&#x8868;&#x7684;&#x547D;&#x4EE4;&#xFF0C;&#x70B9;&#x51FB;&#x201C;&#x521B;&#x5EFA;&#x8868;&#x201D;</li>
</ol>
<center><img src="../assets/day14/5-2-1.png" width="70%" height="70%"></center>
<center><b>&#x521B;&#x5EFA;&#x6570;&#x636E;&#x8868; &#x7B2C;1&#x6B65;</b></center>
<br>

2. &#x5F39;&#x51FA;&#x65B0;&#x7A97;&#x53E3;&#xFF0C;&#x6309;&#x7167;&#x4E0A;&#x8282;&#x7684;&#x8BBE;&#x8BA1;&#xFF0C;&#x521B;&#x5EFA;&#x73ED;&#x7EA7;&#x8868;&#xFF0C;&#x586B;&#x5199;&#x5404;&#x5B57;&#x6BB5;&#xFF0C;&#x9009;&#x62E9;&#x76F8;&#x5E94;&#x7684;&#x7C7B;&#x578B;

<center><img src="../assets/day14/5-2-2.png" width="70%" height="70%"></center>
<center><b>&#x521B;&#x5EFA;&#x6570;&#x636E;&#x8868; &#x7B2C;2&#x6B65;</b></center>

<p><br></p>
<ul>
<li>&#x5BF9;&#x4E8E;id&#x5B57;&#x6BB5;&#xFF0C;&#x9700;&#x8981;&#x8BBE;&#x7F6E;&#x4E3A;int&#x7C7B;&#x578B;&#xFF0C;&#x65E0;&#x7B26;&#x53F7;&#xFF0C;&#x81EA;&#x52A8;&#x589E;&#x957F;&#xFF0C;&#x4E3B;&#x952E;&#xFF0C;&#x975E;&#x7A7A;</li>
<li>&#x5BF9;&#x4E8E;&#x5B57;&#x7B26;&#x4E32;&#x7C7B;&#x578B;&#xFF0C;&#x5FC5;&#x987B;&#x6307;&#x5B9A;&#x5305;&#x542B;&#x5B57;&#x7B26;&#x4E2A;&#x6570;&#xFF0C;&#x8FD8;&#x9700;&#x8981;&#x6307;&#x5B9A;&#x5B57;&#x7B26;&#x96C6;&#x3001;&#x6392;&#x5E8F;&#x89C4;&#x5219;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E0E;&#x6570;&#x636E;&#x5E93;&#x7684;&#x4E00;&#x81F4;</li>
<li>datetime&#x7684;&#x9ED8;&#x8BA4;&#x503C;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x6210;now(),&#x4E5F;&#x53EF;&#x4EE5;&#x662F;&#x4E00;&#x4E2A;&#x5177;&#x4F53;&#x503C;&#xFF0C;&#x5982;&apos;2000-1-1&apos;</li>
<li>&#x6309;&#x7167;&#x540C;&#x6837;&#x7684;&#x65B9;&#x5F0F;&#x521B;&#x5EFA;&#x5B66;&#x751F;&#x8868;students</li>
</ul>
<center><img src="../assets/day14/5-2-3.png" width="70%" height="70%"></center>
<center><b>&#x521B;&#x5EFA;&#x6570;&#x636E;&#x8868; &#x7B2C;2&#x6B65;</b></center>


<h3 id="332-&#x7F16;&#x8F91;&#x6570;&#x636E;&#x8868;">3.3.2 &#x7F16;&#x8F91;&#x6570;&#x636E;&#x8868;</h3>
<ul>
<li>&#x9009;&#x62E9;&#x4E00;&#x5F20;&#x8868;&#x540E;&#xFF0C;&#x5DE5;&#x5177;&#x680F;&#x7684;&#x7B2C;&#x4E8C;&#x884C;&#x201C;&#x6253;&#x5F00;&#x8868;&#x201D;&#x3001;&#x201C;&#x8BBE;&#x8BA1;&#x8868;&#x201D;&#x3001;&#x201C;&#x5220;&#x9664;&#x8868;&#x201D;&#x90FD;&#x53D8;&#x7684;&#x53EF;&#x7528;</li>
</ul>
<center><img src="../assets/day14/5-2-4.png" width="70%" height="70%"></center>
<center><b>&#x521B;&#x5EFA;&#x6570;&#x636E;&#x8868; &#x7B2C;1&#x6B65;</b></center>

<ul>
<li>&#x6253;&#x5F00;&#x8868;&#x4F1A;&#x67E5;&#x770B;&#x8868;&#x7684;&#x5F53;&#x524D;&#x6570;&#x636E;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x8FD9;&#x4E2A;&#x7A97;&#x53E3;&#x4E2D;&#x589E;&#x52A0;&#x3001;&#x4FEE;&#x6539;&#x3001;&#x5220;&#x9664;&#x6570;&#x636E;</li>
<li>&#x8BBE;&#x8BA1;&#x8868;&#x548C;&#x521B;&#x5EFA;&#x8868;&#x7684;&#x7A97;&#x53E3;&#x4E00;&#x6837;&#xFF0C;&#x53EF;&#x4EE5;&#x589E;&#x52A0;&#x3001;&#x4FEE;&#x6539;&#x3001;&#x5220;&#x9664;&#x5B57;&#x6BB5;&#xFF0C;&#x6216;&#x7F16;&#x8F91;&#x5B57;&#x6BB5;&#x7684;&#x7C7B;&#x578B;&#x3001;&#x7EA6;&#x675F;</li>
<li>&#x5220;&#x9664;&#x8868;&#x4F1A;&#x5C06;&#x8868;&#x7269;&#x7406;&#x5220;&#x9664;</li>
</ul>
<h2 id="34-&#x6570;&#x636E;&#x5E93;&#x8868;&#x4E2D;&#x6570;&#x636E;&#x7684;&#x64CD;&#x4F5C;">3.4 &#x6570;&#x636E;&#x5E93;&#x8868;&#x4E2D;&#x6570;&#x636E;&#x7684;&#x64CD;&#x4F5C;</h2>
<h2 id="341-&#x67E5;&#x770B;&#x6570;&#x636E;">3.4.1 &#x67E5;&#x770B;&#x6570;&#x636E;</h2>
<ul>
<li>&#x53CC;&#x51FB;&#x8868;&#xFF0C;&#x6216;&#x8005;&#x9009;&#x62E9;&#x8868;&#x540E;&#xFF0C;&#x70B9;&#x51FB;&#x5DE5;&#x5177;&#x680F;&#x7B2C;&#x4E8C;&#x884C;&#x7684;&#x201C;&#x6253;&#x5F00;&#x8868;&#x201D;&#xFF0C;&#x53EF;&#x4EE5;&#x67E5;&#x770B;&#x8868;&#x7684;&#x6570;&#x636E;</li>
</ul>
<center><img src="../assets/day14/5-3-1.png" width="70%" height="70%"></center>
<center><b>&#x67E5;&#x770B;&#x6570;&#x636E;</b></center>

<h2 id="342-&#x589E;&#x52A0;&#x6570;&#x636E;">3.4.2 &#x589E;&#x52A0;&#x6570;&#x636E;</h2>
<ul>
<li>&#x9ED8;&#x8BA4;&#x6CA1;&#x6709;&#x6570;&#x636E;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x5BF9;&#x5E94;&#x7684;&#x5217;&#x4E2D;&#x586B;&#x5199;&#x6570;&#x636E;&#xFF0C;&#x70B9;&#x51FB;&#x5E95;&#x90E8;&#x7684;&#x5BF9;&#x52FE;&#x5B8C;&#x6210;&#x6DFB;&#x52A0;</li>
<li>&#x6CE8;&#x610F;&#xFF1A;&#x81EA;&#x52A8;&#x589E;&#x957F;&#x7684;&#x4E3B;&#x952E;&#x5217;&#x4E0D;&#x9700;&#x8981;&#x586B;&#x5199;&#x503C;</li>
</ul>
<center><img src="../assets/day14/5-3-2.png" width="70%" height="70%"></center>
<center><b>&#x6DFB;&#x52A0;&#x6570;&#x636E; &#x7B2C;1&#x6B65;</b></center>

<ul>
<li>&#x5982;&#x679C;&#x9700;&#x8981;&#x7EE7;&#x7EED;&#x6DFB;&#x52A0;&#x6570;&#x636E;&#xFF0C;&#x70B9;&#x51FB;&#x8BE2;&#x95EE;&#x7684;&#x52A0;&#x53F7;&#xFF0C;&#x4F1A;&#x51FA;&#x73B0;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x7A7A;&#x767D;&#x884C;&#xFF0C;&#x586B;&#x5199;&#x6570;&#x636E;&#x5373;&#x53EF;</li>
</ul>
<center><img src="../assets/day14/5-3-3.png" width="70%" height="70%"></center>
<center><b>&#x6DFB;&#x52A0;&#x6570;&#x636E; &#x7B2C;2&#x6B65;</b></center>


<h3 id="343-&#x4FEE;&#x6539;&#x6570;&#x636E;">3.4.3 &#x4FEE;&#x6539;&#x6570;&#x636E;</h3>
<ul>
<li>&#x70B9;&#x51FB;&#x67D0;&#x4E2A;&#x5355;&#x5143;&#x683C;&#xFF0C;&#x5373;&#x53EF;&#x7F16;&#x8F91;&#x503C;&#xFF0C;&#x4FEE;&#x6539;&#x5B8C;&#x540E;&#xFF0C;&#x70B9;&#x51FB;&#x5E95;&#x90E8;&#x7684;&#x52FE;&#x751F;&#x6548;.</li>
</ul>
<center><img src="../assets/day14/5-3-4.png" width="70%" height="70%"></center>
<center><b>&#x4FEE;&#x6539;&#x6570;&#x636E;</b></center>

<h3 id="344-&#x5220;&#x9664;&#x6570;&#x636E;">3.4.4 &#x5220;&#x9664;&#x6570;&#x636E;</h3>
<ul>
<li>&#x70B9;&#x51FB;&#x67D0;&#x4E2A;&#x5355;&#x5143;&#x683C;&#xFF0C;&#x518D;&#x70B9;&#x51FB;&#x8BE2;&#x95EE;&#x7684;&#x51CF;&#x53F7;&#xFF0C;&#x53EF;&#x4EE5;&#x5220;&#x9664;</li>
</ul>
<center><img src="../assets/day14/5-3-5.png" width="70%" height="70%"></center>
<center><b>&#x5220;&#x9664;&#x6570;&#x636E;</b></center>

<ul>
<li>&#x8BF4;&#x660E;&#xFF1A;&#x5BF9;&#x4E8E;&#x91CD;&#x8981;&#x6570;&#x636E;&#xFF0C;&#x63A8;&#x8350;&#x5C06;isdelete&#x5C5E;&#x6027;&#x6539;&#x4E3A;1&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x8FDB;&#x884C;&#x7269;&#x7406;&#x5220;&#x9664;.</li>
</ul>
<p>&#x5173;&#x4E8E;&#x7269;&#x7406;&#x5220;&#x9664;&#x548C;&#x903B;&#x8F91;&#x5220;&#x9664;&#x6211;&#x4EEC;&#x5728;&#x540E;&#x9762;&#x4F1A;&#x518D;&#x6B21;&#x8BE6;&#x7EC6;&#x8BF4;&#x660E;&#x3002;</p>
<h2 id="35-&#x603B;&#x7ED3;">3.5 &#x603B;&#x7ED3;</h2>
<p>&#x5728;&#x5DE5;&#x4F5C;&#x4E2D;&#x4E3A;&#x4E86;&#x63D0;&#x9AD8;&#x5F00;&#x53D1;&#x6548;&#x7387;&#x5F80;&#x5F80;&#x9700;&#x8981;&#x91C7;&#x7528;&#x4E00;&#x4E9B;&#x6570;&#x636E;&#x5E93;&#x5DE5;&#x5177;, &#x4F46;&#x662F;&#x4E3A;&#x4E86;&#x592F;&#x5B9E;&#x540C;&#x5B66;&#x4EEC;&#x7684;&#x57FA;&#x7840;, &#x80FD;&#x591F;&#x5728;&#x9762;&#x8BD5;&#x548C;&#x5DE5;&#x4F5C;&#x4E2D;&#x5728;&#x5904;&#x7406;&#x6570;&#x636E;&#x7684;&#x65F6;&#x5019;&#x5F97;&#x5FC3;&#x5E94;&#x624B;, &#x6211;&#x4EEC;&#x5728;&#x5F88;&#x591A;&#x60C5;&#x51B5;&#x4E0B;&#x8FD8;&#x9700;&#x8981;&#x719F;&#x6089;&#x547D;&#x4EE4;&#x884C;&#x5BA2;&#x6237;&#x7AEF;&#x7684;&#x64CD;&#x4F5C;-&#x672C;&#x8D28;&#x4E0A;&#x5C31;&#x662F;SQL&#x8BED;&#x53E5;&#x7684;&#x7F16;&#x5199;.</p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../day14/02.数据类型和约束.html" class="navigation navigation-prev " aria-label="Previous page: 数据完整性"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../day14/04.命令行客户端.html" class="navigation navigation-next " aria-label="Next page: 命令行客户端SQL的使用"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-splitter/splitter.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"toggle-chapters":{},"splitter":{},"emphasize":{},"highlight":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        <!-- body:end -->
    </body>
    <!-- End of book python高级 -->
</html>
